package com.yonyou.brigade.order_center.controller;

import com.yonyou.brigade.order_center.service.IBriHotelRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("/order_center/briHotelRoom")
public class BriHotelRoomController {

    @Autowired
    @Qualifier("briHotelRoomServiceImpl")
    private IBriHotelRoomService briHotelRoomService;

    @RequestMapping("/hotels")
    @ResponseBody
    public Map getHotelRoomDTOS(@RequestParam Map params)
    {
        Map result= briHotelRoomService.getBriHotelRoomDTOs(params);
        return  result;
    }

}
